package com.guigu.dealservice.feign;

import com.guigu.common.utils.R;
import com.guigu.dealservice.dto.Equipment;
import com.guigu.dealservice.dto.User;
import com.guigu.userservice.vo.BusinessmanEquipmentVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "service-user")
public interface MyUserFeign {

    @GetMapping("/user/usercon/queryUserById/{id}")
    User queryUserById(@PathVariable("id") Integer id);

    @PostMapping("/user/businessmanEquipment/queryBusinessmanEquipment/{operatorId}/{pageNo}/{pageNum}")
    List<Equipment> queryBusinessmanEquipment(@PathVariable("operatorId") Integer operatorId);
}
